package com.family.payment.controller;

import com.family.payment.config.WxPayConfig;
import com.family.payment.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "测试控制器")
@RequestMapping("/api/test")
@RestController
public class TestController {

    @Autowired
    private WxPayConfig wxPayConfig;

    @GetMapping("/config")
    public R testConfig(){
        return R.ok().data("mchId",wxPayConfig.getMchId());
    }


}
